<%@ page contentType="text/html;charset=utf-8" isELIgnored="false" %>
<%@ include file="/head.jsp" %>

<html>
	<head>
		<title>Websign</title>
	</head>
	<body>
		<div style="display:none;">
			<object  id="DWebSignSeal"  classid='CLSID:77709A87-71F9-41AE-904F-886976F99E3E' codebase="${ctx}/work/websign/WebSign.dll" width=0 height=0 />
			</div>
			<table width="500px" align=center >
				<tr>
					<td>
						  <button onclick="WebSign_AddSeal()" width="90px">签章</button>
						  <button onclick="WebSign_HandWritePop()" width="90px">手写</button>
					</td>
					</tr>
				</table>
			
	</body>
</html>

<script>
	function WebSign_AddSeal(item,seal_id)
{
    try {
        var DWebSignSeal=document.getElementById("DWebSignSeal");
        DWebSignSeal.SetCurrUser("admin[系统管理员]");
        DWebSignSeal.SetSignData("-");
        DWebSignSeal.SetSignData("+DATA:中国兵器工业信息中心");
        DWebSignSeal.SetPosition(10,10,"SIGN_INFO_POS");
        DWebSignSeal.addSeal("", "SIGN_INFO");	    
        DWebSignSeal.SetMenuItem(obj_name,5);
	    //DWebSignSeal.LockSealPosition(obj_name);
    }catch(e){}
}

function WebSign_HandWritePop()
{
    try {
        var DWebSignSeal=document.getElementById("DWebSignSeal");
        DWebSignSeal.SetCurrUser("admin[系统管理员]");
        DWebSignSeal.SetSignData("-");
        DWebSignSeal.SetSignData("+DATA:中国兵器工业信息中心");
        DWebSignSeal.SetPosition(10,10,"SIGN_INFO_POS");
	    var obj_name=DWebSignSeal.HandWritePop(0,255,0,0,0,"SIGN_INFO");
	    DWebSignSeal.SetMenuItem(obj_name,5);
	    //DWebSignSeal.LockSealPosition(obj_name);
	}catch(e){}
}

	</script>